import Vue from 'vue';
let MessageConstructor = Vue.extend(require('./Messages.vue'));

let instance;

let Message = option => {
	instance = new MessageConstructor({
		data: option
	});
	instance.vm = instance.$mount();
	document.body.appendChild(instance.vm.$el);
	instance.vm.visible = true;
    instance.dom = instance.vm.$el;
    instance.dom.style.zIndex = 999;
    return instance.vm;
}
export default Message;